﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>咨询部人员管理</title>
<link rel="stylesheet" type="text/css" href="_ADMIN_css/css.css" />
<script type="text/javascript" src="_ADMIN_js/jquery.min.js"></script>
	<script type="text/javascript" src="/CRM/public/js/laydate.js"></script>
<script type="text/javascript" src="_ADMIN_layer/layer.js"></script>
<script type="text/javascript" src="_ADMIN_laydate/laydate.js"></script>
</head>
<style>
	.td{
		height: 40px;
	}
	.vsAdd{
		display: inline-block;
		width: 70px;
		height: 25px;
		border-radius:8px;
		background-color: #2a9cdd;
		line-height: 25px;
		color: #fff;
		cursor: pointer;
		text-align: center;
	}
</style>
<body>
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="_ADMIN_img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
					href="#">咨询部人员管理</a>&nbsp;-</span>&nbsp;人员管理
			</div>
		</div>

		<div class="page">
			<!-- banner页面样式 -->
			<div class="connoisseur">
				<div class="conform">
						<div class="cfD">
							<a class="addA" style="margin-top: 0;margin-left: 0;" href="{:url('admin/advisory/personadd')}">添加+</a>
						</div>
				</div>
				<!-- banner 表格 显示 -->
				<div class="conShow">
					<table border="1" cellspacing="0" cellpadding="0">
						<tr>
							<td width="135px" class="tdColor tdC">序号</td>
							<td width="135px" class="tdColor">姓名</td>
							<td width="145px" class="tdColor">联系电话</td>
							<td width="140px" class="tdColor">入职时间</td>
							<td width="140px" class="tdColor">备注</td>
							<td width="200px" class="tdColor">操作</td>
						</tr>
						{volist name="$result" id="vo"}
						<tr class="td">
							<td>{$key+1}</td>
							<td>{$vo.user_name}</td>
							<td>{$vo.user_phone}</td>
							<td>{$vo.user_createtime}</td>
							<td>{$vo.user_text}</td>
							<td><a href="{:url('admin/advisory/personupdate',['user_id'=>$vo.user_id])}" class="vsAdd">修改</a> <a class="vsAdd" onclick="delban(id={$vo['user_id']})">删除</a></td>
						</tr>
						{/volist}
					</table>
				</div>
				<!-- banner 表格 显示 end-->
			</div>
			<!-- banner页面样式end -->
		</div>

	</div>


</body>

<script type="text/javascript">
// 广告弹出框
 function delban(id) {
//     alert(id);return;
     layer.confirm('确认要删除吗？', function () {
         $.get("{:url('admin/advisory/ajax')}", {'id': id}, function (data) {
             if (data.msg == 200) {
//                 layer.msg('已删除!', {icon: 1, time: 1000});
				 location.reload();
             } else{
                 layer.msg('删除失败!', {icon: 5, time: 1000});
             }
         },'json')
     });
 }

$(".close").click(function(){
  $(".banDel").hide();
});
$(".no").click(function(){
  $(".banDel").hide();
});
// 广告弹出框 end
</script>
</html>